package com.hch.maker.cli.command;


import com.hch.maker.meta.Meta;
import picocli.CommandLine.Command;
import picocli.CommandLine.Option;

import java.util.concurrent.Callable;

/**
 * @author hch
 * @version 1.0
 * @description TODO
 * @date 2024/7/24 12:52
 */
@Command(name = "generate", mixinStandardHelpOptions = true)
public class GenerateCommand implements Callable<Integer> {

    @Option(names = {"--needGit"},echo = true, description = "是否生成.gitignore文件", arity = "0..1", interactive = true)
    private boolean needGit = true;

    @Option(names = {"-a", "author"},echo = true, description = "作者名称", arity = "0..1", interactive = true)
    private String author;

    @Option(names = {"-o", "outputText"},echo = true, description = "输入文字", arity = "0..1", interactive = true)
    private String outputText;

    @Option(names = {"-l", "loop"},echo = true, description = "是否循环", arity = "0..1", interactive = true)
    private boolean loop;


    @Override
    public Integer call() throws Exception {

//        DataModel dataModel = new DataModel();
//        dataModel.setAuthor(author);
//        dataModel.setOutputText(outputText);
//        dataModel.setLoop(loop);
//        FileGenerator.doGenerate(dataModel);
        return 0;
    }
}
